function updatewookmark() {
	var options = {
	        autoResize: true, // This will auto-update the layout when the browser window is resized.
	        container: $('#main'), // Optional, used for some extra CSS styling
	        offset: 20, // Optional, the distance between grid items
	        itemWidth: 300 // Optional, the width of a grid item
	      };
	      
    // Get a reference to your grid items.
    var handler = $('#tiles li');
    // Call the layout function.
    handler.wookmark(options);
    // Capture clicks on grid items.
    handler.click(function(){
    // Randomize the height of the clicked item.
        var newHeight = $('img', this).height() + Math.round(+180);
        $(this).css('height');
        
        // Update the layout.
        handler.wookmark();
    });
}